import service from "@/utils/request"


//http://127.0.0.1:19090/system/sysUser/login
export function loginService(userAccount,password){
    return service({
        url: "/sysUser/login",
        method: "post",
        data: {userAccount,password}
    })
}
//发送一个请求，拿取管理员昵称
export function getUserNickNameService(){
    return service({
        url: "/sysUser/info",
        method: "get",
    })
}
//用户点击退出登录，发送请求，删除token
export function logoutService(){
    return service({
        url: "/sysUser/logout",
        method: "delete",
    })
}

//发送请求，拿取用户信息

//发送请求，拿取题库信息

//发送请求，拿取竞赛信息